package c.e.b.h.e.m.x;

import android.util.Base64;
import android.util.JsonReader;
import c.e.b.h.e.m.e;
import c.e.b.h.e.m.x.h.a;
import java.util.Objects;

/* compiled from: CrashlyticsReportJsonTransform */
public final /* synthetic */ class b implements a {
    public static final b a = new b();

    public Object a(JsonReader jsonReader) {
        c.e.b.i.a aVar = h.a;
        jsonReader.beginObject();
        String str = null;
        byte[] bArr = str;
        while (jsonReader.hasNext()) {
            String nextName = jsonReader.nextName();
            nextName.hashCode();
            if (nextName.equals("filename")) {
                str = jsonReader.nextString();
                Objects.requireNonNull(str, "Null filename");
            } else if (nextName.equals("contents")) {
                bArr = Base64.decode(jsonReader.nextString(), 2);
                Objects.requireNonNull(bArr, "Null contents");
            } else {
                jsonReader.skipValue();
            }
        }
        jsonReader.endObject();
        String str2 = str == null ? " filename" : "";
        if (bArr == null) {
            str2 = c.b.a.a.a.D(str2, " contents");
        }
        if (str2.isEmpty()) {
            return new e(str, bArr, null);
        }
        throw new IllegalStateException(c.b.a.a.a.D("Missing required properties:", str2));
    }
}
